<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Ad extends Model
{
    //
    protected $table = 'ad';

    public $timestamps = false;


    public function photoad(){
        return $this->hasOne('App\Models\Image','post_id','id');
    }

    public function types(){
        return $this->belongsTo('App\Models\Type','type','code');
    }

}
